package com.itlong.cloud.equip.commons;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <desc>
 *      云对讲响应硬件结果业务处理暴露接口
 * </desc>
 *
 * @createDate 2017/12/08
 */
@FeignClient(name = "equip-service")
public interface ICloudTalkPushCloudIntercomChangeLogServiceClient {

    /**
     * <desc>
     *      任务调度执行同步业务指令至响应硬件结果表
     * </desc>
     *
     * @author Jiaqi.X
     * @createDate 2017/12/04
     */
    @RequestMapping(path = "/smartCard/timeTaskPushCloudIntercom", method = RequestMethod.POST)
    void timeTaskPushCloudIntercom() throws Exception;



    /**
     *<desc>
     *  根据设备唯一标识符查询电梯正背门信息
     *</desc>
     *
     * @Author  chengshican
     * @Date   \ 15:21
     * @Param
     * @Return
     * @Exception
     *
     */
    @RequestMapping(path = "/smartCard/getElevatorByDeviceUnique", method = RequestMethod.POST)
    public Map<String,Object> getElevatorByDeviceUnique(@RequestParam("deviceUnique") String deviceUnique) throws  Exception;


}
